package com.hourse.platform.config;

import org.hibernate.dialect.function.SQLFunctionTemplate;
import org.hibernate.type.StringType;

public class MysqlDic extends org.hibernate.dialect.MySQL5InnoDBDialect{


  public MysqlDic() {
    super();
    this.registerFunction("mysql_if", new SQLFunctionTemplate(new StringType(),"if(IFNULL(?1, NULL) in ?2,?3,?4)",true));

  }
}
